// 泛型
interface Ref<V>{
    value:V
}

let ref:Ref<string>={
    value:"abc"
    // value:123
}

type Student={name:string,age:number}
let ref2: Ref<Student>={
    value:{ name:"wangwu",age:5 }
}

ref2.value